package cn.edu.scau.cmi.dengshixin.abstractFactory;

import cn.edu.scau.cmi.dengshixin.brand.Tianbang;
import cn.edu.scau.cmi.dengshixin.factoryProduct.Meat;
import cn.edu.scau.cmi.dengshixin.factoryProduct.TianbangBeaf;
import cn.edu.scau.cmi.dengshixin.factoryProduct.TianbangChicken;
import cn.edu.scau.cmi.dengshixin.factoryProduct.TianbangPork;

public class TianbangMeatFactory extends Factory implements Tianbang {

	public Meat produce(String meatName) {
		Meat meat = null;
		switch(meatName) {
		case "Beaf":
			meat = new TianbangBeaf();
			break;
		case "Chicken":
			meat = new TianbangChicken();
			break;
		case "Pork":
			meat = new TianbangPork();
			break;
		}
		return meat;
	}
	
}
